import Vue from 'vue';
import App from './App.vue';
import router from './router';
import ElementUI from 'element-ui';//elementui插件
import VueI18n from 'vue-i18n';//语言插件
//import Cookies from 'js-cookie';//Cookies缓存
import { messages } from './components/common/i18n';
import 'element-ui/lib/theme-chalk/index.css'; // 默认主题
// import './assets/css/theme-green/index.css'; // 浅绿色主题
import './assets/css/icon.css';
import './assets/iconfont/iconfont.css';
import './components/common/directives';
import 'babel-polyfill';
import Clipboard from 'v-clipboard';//剪贴板插件
import VueQriously from 'vue-qriously';//二维码插件
import 'quill/dist/quill.core.css';//富文本编辑器样式
import 'quill/dist/quill.snow.css';//富文本编辑器样式
import 'quill/dist/quill.bubble.css';//富文本编辑器样式
import quillEditor from 'vue-quill-editor';//富文本编辑器
import * as Quill from 'quill';//富文本编辑器
// 调整上传图片大小
import ImageResize from 'quill-image-resize-module'; //修改图片大小
import './icon/iconfont.css';//图标
import Vant from 'vant'; //vant组件
import 'vant/lib/index.css';//vant组件
import { Lazyload } from 'vant';//vant组件
//import axios from 'axios'; 
import front from './api/frontApi' //前端请求地址
//import {refreshToken} from './api/index.js'; //刷新token
import frontaxios from './utils/frontrequest.js';
Quill.register('modules/imageResize',ImageResize);
import SlideVerify from 'vue-monoplasty-slide-verify';
import echarts from 'echarts';  // echarts插件

Vue.use(SlideVerify);
Vue.use(Vant);
Vue.use(Lazyload);
Vue.use(Clipboard);
Vue.use(VueQriously);
Vue.use(quillEditor);
Vue.config.productionTip = false;
Vue.use(VueI18n);
Vue.use(ElementUI, {
    size: 'medium'
});
const i18n = new VueI18n({
    locale: 'zh',
    messages
});

//Vue.prototype.$axios=axios;
Vue.prototype.$frontaxios=frontaxios;
Vue.prototype.$front=front;
Vue.prototype.$echarts=echarts;

new Vue({
    router,
    i18n,
    render: h => h(App)
}).$mount('#app');


